<?php
if (!defined('BASEPATH'))
	exit('No direct script access allowed');
class Type_model extends MY_Model
{
    private $table = 'type';
	public function __construct()
	{
		parent::__construct($this->table);	
	}
	
	//获取服务数据,如WIFI,停车等
	public function getServices($serviceTypeIds){
	    $services=$this->getWhere_in('typeId',$serviceTypeIds,'typeName,concat("'.IMAGEHOST.'" , icon) as icon');
	    
	    return $services;
	}
	//获取技师职业技能
	public function getSkill($skillIds){
	    $skill=$this->getWhere_in('typeId',$skillIds,'typeName');
	    $res=[];
	    foreach ($skill as $key=>$val){
	        $res[]=$val['typeName'];
	    }
	    return $res;
	}
    
}
?>